package network;

public class Address {
	private final String value;

	public Address(String description) {
		super();
		this.value = description;
	}


	public String getValue() {
		return value;
	}


	public String toString() {
		return super.toString() + " " + value;
	}

	public boolean equals(Address cmpAdd) {
		return cmpAdd.getValue().equals(value);
	}
	
	@Override
	public boolean equals(Object cmpObj) {
		try {
			return equals((Address) cmpObj);			
		} catch (ClassCastException e) {
			return false;
		}
		
	}
}